﻿<?php
/**
 * Generic view class
 * @author Erko Risthein <erko@risthein.ee>
 * @copyright Copyright (C) 2009 Erko Risthein
 * @link http://erko.risthein.ee/decode/
 * @license http://www.gnu.org/licenses/ GNU General Public License
 * @package decode_explorer
 */
class View {
	/**
	 * Renders the view file (injects the data)
	 * @param array $file to render
	 * @param array $data to inject into the file
	 */
	public static function render($file, $data) {
		extract($data);
		require($file);
	}
}
?>